﻿namespace Framework.Event
{
    /// <summary>
    /// 事件类
    /// </summary>
    public class Event<T> where T : IEventArg
    {
        private object m_Sender;
        private T m_Args;
        public Event(object sender, T args)
        {
            m_Sender = sender;
            m_Args = args;
        }
        public object Sender
        {
            get
            {
                return m_Sender;
            }
        }
        public T Args
        {
            get
            {
                return m_Args;
            }
        }
    }
}
